package spark.utility;

public class IncrementalShortIdFactory implements ShortIdFactory{
	private short currentId;

	public IncrementalShortIdFactory() {
		this((short)0);
	}

	public IncrementalShortIdFactory(short startingId) {
		currentId = startingId;
	}

	@Override
	public short getNextId() {
		return currentId++;
	}
}